package com.googlecode.jpocketmod.actions;

import java.awt.event.ActionEvent;
import javax.swing.Action;

/**
 *
 * @author David Sosby
 */
public class ExitApplicationAction extends ApplicationAction  {
	public ExitApplicationAction()  {
		this.putValue(Action.NAME, "Exit");
		this.putValue(Action.SHORT_DESCRIPTION, "Exit JPocketMod");
		this.putValue(Action.LONG_DESCRIPTION, "Exit JPocketMod");
		this.putValue(Action.ACTION_COMMAND_KEY, "Exit");
	}

	public void actionPerformed(ActionEvent e) {
		runAction();
	}

	@Override
	protected void runAction() {
		fireApplicationExitEvent();	/*Tell anyone that wants to know*/
		
		/*Do anything else here*/
	}
	
}
